package com.handyshop.mall.dubbo.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.handyshop.mall.dubbo.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@ApiModel(value = "会员账户资产表")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "nrs_user_property")
public class UserProperty extends BaseEntity {
    @TableField(value = "user_id")
    @ApiModelProperty(value = "")
    private Long userId;

    @TableField(value = "`type`")
    @ApiModelProperty(value = "")
    private String type;

    /**
     * 冻结金额
     */
    @TableField(value = "lock_num")
    @ApiModelProperty(value = "冻结金额")
    private BigDecimal lockNum;

    /**
     * 可用金额
     */
    @TableField(value = "num")
    @ApiModelProperty(value = "可用金额")
    private BigDecimal num;

    public static final String COL_ID = "id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_TYPE = "type";

    public static final String COL_LOCK_NUM = "lock_num";

    public static final String COL_NUM = "num";

    public static final String COL_DELETE_FLAG = "delete_flag";

    public static final String COL_CREATOR_ID = "creator_id";

    public static final String COL_CREATOR = "creator";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_MODIFY_TIME = "modify_time";
}